package edu.jamestang.yeb.mapper;

import edu.jamestang.yeb.entity.Admin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author JamesTang
 * @since 2021-12-13
 */
@Mapper
public interface AdminMapper extends BaseMapper<Admin> {

    /**
     * get admin list
     * @param id admin id
     * @param keyword keyword
     * @return list
     */
    List<Admin> getAllAdmins(@Param("id") Integer id, @Param("keywords") String keyword);


}
